<?php

namespace app\common\model;

use think\Model;

/**
 * 分类模型
 */
class News extends Model
{

    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';


    protected static function init()
    {

    }


    /**
     * 读取分类类型
     * @return array
     */
    public static function getTypeList()
    {
        $typeList = config('site.categorytype');
        foreach ($typeList as $k => &$v) {
            $v = __($v);
        }
        return $typeList;
    }

}
